package com.scalar.chiptrack.commons.bean;

import java.io.Serializable;

/**
 * User: Ganesh
 * Date: Apr 29, 2008
 * Time: 11:21:21 AM
 */
public class ColumnBean implements Serializable {
    private String columnName = null;
    private String dbColumnName = null;
    private String columnType = null;
    private String listName = null;
    private boolean tempColumn = false;
    private boolean linkRequired = false;
    private boolean columnTypeBoolean = false;
    private boolean primaryColumn = false;
    private boolean colorRequired = false;
    private boolean fieldRequired = false;

    private com.scalar.chiptrack.commons.bean.ColumnUrlBean columnUrlBean;
    private com.scalar.chiptrack.commons.bean.ColumnFieldBean columnFieldBean;

    private ColumnColorCodeBean columnColorCodeBean;



    public ColumnBean()
    {
        this.columnName = "";
        this.dbColumnName = "";
        this.linkRequired = false;
        this.columnTypeBoolean = false;
        this.fieldRequired = false;
        this.primaryColumn = false;
        this.columnUrlBean = new ColumnUrlBean( "", "", "", "" );
        columnColorCodeBean=new ColumnColorCodeBean("","");
        columnFieldBean = new ColumnFieldBean("","","");
    }


    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getDbColumnName() {
        return dbColumnName;
    }

    public void setDbColumnName(String dbColumnName) {
        this.dbColumnName = dbColumnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public boolean isLinkRequired() {
        return linkRequired;
    }

    public void setLinkRequired(boolean linkRequired) {
        this.linkRequired = linkRequired;
    }

    public boolean isColumnTypeBoolean() {
        return columnTypeBoolean;
    }

    public void setColumnTypeBoolean(boolean columnTypeBoolean) {
        this.columnTypeBoolean = columnTypeBoolean;
    }

    public boolean isPrimaryColumn() {
        return primaryColumn;
    }

    public void setPrimaryColumn(boolean primaryColumn) {
        this.primaryColumn = primaryColumn;
    }

    public boolean isColorRequired() {
        return colorRequired;
    }

    public void setColorRequired(boolean colorRequired) {
        this.colorRequired = colorRequired;
    }

    public boolean isFieldRequired() {
        return fieldRequired;
    }

    public void setFieldRequired(boolean fieldRequired) {
        this.fieldRequired = fieldRequired;
    }

    public ColumnUrlBean getColumnUrlBean() {
        return columnUrlBean;
    }

    public void setColumnUrlBean(ColumnUrlBean columnUrlBean) {
        this.columnUrlBean = columnUrlBean;
    }

    public ColumnFieldBean getColumnFieldBean() {
        return columnFieldBean;
    }

    public void setColumnFieldBean(ColumnFieldBean columnFieldBean) {
        this.columnFieldBean = columnFieldBean;
    }

    public ColumnColorCodeBean getColumnColorCodeBean() {
        return columnColorCodeBean;
    }

    public void setColumnColorCodeBean(ColumnColorCodeBean columnColorCodeBean) {
        this.columnColorCodeBean = columnColorCodeBean;
    }

    public boolean isTempColumn() {
        return tempColumn;
    }

    public void setTempColumn(boolean tempColumn) {
        this.tempColumn = tempColumn;
    }

    public String getListName() {
        return listName;
    }

    public void setListName(String listName) {
        this.listName = listName;
    }
}
